/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package reverse;
import java.util.Scanner;
/**
 *
 * @author Alex
 */
public class Reverse {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String input;
        Scanner in = new Scanner(System.in);
        input = in.nextLine();
        in.close();
        for (int i = input.length() - 1; i >= 0; i --)
        {
            System.out.print(input.charAt(i));
        }
        
        // TODO code application logic here
    }
}
